package com.student.mapper;

import com.student.bean.SportIndex;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SportIndexMapper {
    //运动信息录入
    boolean insertSportIndex(@Param("run") Integer run,
                             @Param("rope") Integer rope,
                             @Param("foot") Integer foot,
                             @Param("situp") Integer situp,
                             @Param("pushup") Integer pushup,
                             @Param("plank") Integer plank,
                             @Param("date") Date date,
                             @Param("user_id") Integer user_id);

    //查询运动信息
    List<SportIndex> selectSportIndex(@Param("date") Date date);

    //修改数据
    boolean updateSelect(@Param("run")Integer run,
                         @Param("rope") Integer rope,
                         @Param("foot") Integer foot,
                         @Param("situp") Integer situp,
                         @Param("pushup") Integer pushup,
                         @Param("plank") Integer plank,
                         @Param("date") Date date);

    //删除数据
    boolean deleteDate(@Param("date")Date date);


}
